package com.ruoyi.controller;

import com.ruoyi.entity.pojo.Basic_Factory;
import com.ruoyi.service.Basic_FactoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * AI模块测试控制器
 *
 * @author cjj
 */
@RestController
public class TestController {

    @Autowired
    private Basic_FactoryService basic_factoryService;

    /**
     * 获取工厂列表测试接口
     */
    @GetMapping("/getfactory")
    public List<Basic_Factory> getfactory() {
        return basic_factoryService.list();
    }
}
